/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package NhanVien;

/**
 *
 * @author Tuan
 */
public class DSNV {
    private int count;
    private NhanVien[] dsNV;
    private final int MAX_NV=100;
    
    //constructor
    public DSNV(){
        count=0;
        dsNV=new NhanVien[MAX_NV];
    }
    
    //getter
    public int getCount() {
        return count; 
    }
    public NhanVien[] getDS() {
        return dsNV; 
    } 
    
    //them nhan vien moi
    public boolean addNV(NhanVien nv){
        if (count<=MAX_NV){
            dsNV[count]=nv;
            count++;
            return true;
        }
        return false;
        
    }
    
    //xoa nhan vien theo ma so
    public boolean removeNV(int msNV){
        dsNV[msNV]=null;
        return true;
    }
}
